package com.coolw.design.pattern.behavior.liabilitychain.service;

import com.coolw.design.pattern.behavior.liabilitychain.handler.OrderCheckHandler;
import com.coolw.design.pattern.behavior.liabilitychain.dto.OrderCheckParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单服务类
 *
 * @author coolw
 * @date 2024/10/22 19:56
 */
@Service
public class OrderService {

    @Autowired
    private OrderCheckHandler orderCheckHandler;

    public String checkOrder(OrderCheckParam param) {
        orderCheckHandler.check(param);
        return "ok";
    }
}
